package com.chege.seller.utils;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

/**
 * Created by KUMA on 2016/8/15.
 */
public class CommonUtils {
    /**
     * 拨打电话 -- 直接调转到拨号界面
     *
     * @param number
     */
    public static void callPhone(String number, Context context) {
        Intent intent = new Intent(Intent.ACTION_DIAL);
        Uri data = Uri.parse("tel:" + number);
        intent.setData(data);
        context.startActivity(intent);
    }
}
